<?php

use Illuminate\Routing\Router;

/**
 * 2020设计师大赛路由
 *
 * @category   Module name
 * @package    PSR
 * @subpackage Documentation\API
 * @author     zhouyang  <zhouyang@haohaozhu.com>
 * @license    GPL http://www.haohaozhu.com
 * @link       http://www.haohaozhu.com
 */

Route::group([
    'prefix'        => 'admin/DesignerCompetition2020',
    'namespace'     => 'Beerus\\Modules\\DesignerCompetition2020\\Controllers',
    'middleware'    => [
        'web',
        'admin',
    ],
], function (Router $router) {
    // 报名列表、海选确认
    $router->get('/audit', 'AuditController@index');
    $router->put('audit/{id}', 'AuditController@save');
    // 初筛确认
    $router->get('/verify/first/{tab}', 'BeginVerifyController@index');
    $router->put('/verify/first/audit/{id}', 'BeginVerifyController@review');
    $router->put('/verify/first/{tab}/{id}', 'BeginVerifyController@remark');
    // 终筛确认
    $router->get('/verify/final/{tab}', 'FinalVerifyController@index');
    $router->put('/verify/final/audit/{id}', 'FinalVerifyController@review');
    $router->put('/verify/final/{id}', 'FinalVerifyController@remark');
    $router->get('/download/{id}', 'AuditController@download');
    // 参赛作品头图设置
    $router->get('/vote', 'VoteController@index')->name('vote.list');
    $router->get('/vote/{id}/edit', 'VoteController@edit');
    $router->post('/vote/save/{id}/{article_id}', 'VoteController@saveData');
});
